package cn.bdqn.pn.service.schedule;


import cn.bdqn.pn.pojo.schedule.Place;
import cn.bdqn.pn.pojo.schedule.Seat;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.Modifying;

import java.sql.SQLException;
import java.util.List;

public interface PlaceService {
    /**
     *
     * @param place
     * @return 新增场地
     * @throws SQLException
     */
   public Integer addPlaceInfo(Place place)throws Exception;


    /**
     * 根据条件查询场地信息并分页
     * @param place
     * @param pageNum
     * @param pageSize
     * @return
     * @throws SQLException
     */
   public Page<Place> getByPlaceInfoFindPlace(Place place,Integer pageNum,Integer pageSize) throws SQLException;


    /**
     * 根据场地id修改场地信息
     * @param place
     * @return
     * @throws SQLException
     */
   public boolean updatePlaceInfo(Place place)throws SQLException;

    /**
     * 根据场地id查询场地信息
     * @param placeId
     * @return
     * @throws SQLException
     */
   public Place findByPlace(Integer placeId);

    /**
     * 根据供应商id查询信息
     * @param agentId
     * @return
     * @throws SQLException
     */
    public List<Place> findByagentId(Integer agentId) throws SQLException;
}
